﻿using AgileMaster.Database;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace AgileMaster.Models
{
    public class ProjectView
    {
        public ProjectView(ProjectEntity entity)
        {
            this.ID = entity.ID;
            this.Name = entity.Name;
        }

        [Key]
        public int ID { get; set; }

        public string Name { get; set; }

        [Editable(false)]
        public int FeaturesCount { get; set; }
    }
}